home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MISC / SHELL.ARC / Shell / Sources / c / PlainGRect < prev    next >
Text File  |  1994-06-21  |  488b  |  27 lines

  1. #include "Shell.RedrawToSp.h"
  2. #include "Shell.PlainRect.h"
  3.  
  4.  
  5. static BOOL Shell_PlainGreyRectSaver( char *filename, Shell_rectblock *r)
  6. {
  7. return Shell_SaveRectAsSprite( filename, r, TRUE /*use greyscale palette*/);
  8. }
  9.  
  10.  
  11.  
  12. Shell_rectblock    *Shell_AddPlainGreyRect(
  13.     Shell_windblock *w,
  14.     int xmin, int ymin,
  15.     int xmax, int ymax
  16.     )
  17. {    Shell_rectblock *r;
  18.  
  19. r = Shell_AddPlainRect( w, xmin, ymin, xmax, ymax);
  20.  
  21. r->saver = Shell_PlainGreyRectSaver;    /* Override the standard saver.    */
  22.  
  23. return r;
  24. }
  25.  
  26.  
  27.